﻿<UserControl x:Class="Rio.Application.RioWeb.Home.Views.HomeView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Rio_Framework_Pages_MenuOffice="clr-namespace:Rio.Framework.Pages.MenuOffice;assembly=Rio.Framework.Pages"
             xmlns:Pages="clr-namespace:Rio.Framework.Pages;assembly=Rio.Framework.Pages"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:localization="clr-namespace:Rio.Framework.Localisation;assembly=Rio.Framework.Localisation"
                         xmlns:BaseClass="clr-namespace:Rio.Framework.Pages.Controls.BaseClass;assembly=Rio.Framework.Pages"
                         Loaded="UserControl_Loaded"
             mc:Ignorable="d">

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush Stretch="Fill"
                        ImageSource="/Rio.Framework.Pages;component/Assets/Images/RIO_Background.jpg" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="75" />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <Rio_Framework_Pages_MenuOffice:HeadMenu Name="headMenu" />

        <StackPanel HorizontalAlignment="Center"
                    Grid.Row="1"
                    Orientation="Horizontal"
                    VerticalAlignment="Center">
            <StackPanel.Effect>
                <DropShadowEffect BlurRadius="10"
                                  Opacity="0.75" />
            </StackPanel.Effect>
            <TextBlock x:Name="labelWelcome"
                       TextWrapping="Wrap"
                       Text="{localization:Resx ResxKey=Welcome}"
                       Foreground="White"
                       FontWeight="Bold"
                       FontSize="21.333" />
            <TextBlock x:Name="labelName"
                       TextWrapping="Wrap"
                       Margin="5,0,0,0"
                       Foreground="White"
                       FontWeight="Bold"
                       FontSize="21.333" />
        </StackPanel>
        <HyperlinkButton x:Name="ChangePasswordHyperLinkButton"
                         HorizontalAlignment="Right"
                         Grid.Row="1"
                         VerticalAlignment="Top"
                         Margin="0,5,10,0"
                         Background="Transparent"
                         Foreground="White"
                         FontStyle="Italic"
                         Click="ChangePasswordHyperLinkButton_Click" />

        <ScrollViewer BorderThickness="0"
                      VerticalScrollBarVisibility="Auto"
                      HorizontalScrollBarVisibility="Auto"
                      Grid.Row="2"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Top"
                      Margin="20">
            <StackPanel Orientation="Horizontal">
                <StackPanel.Effect>
                    <Pages:ReflectionShader ElementHeight="200" />
                </StackPanel.Effect>

                <Rio_Framework_Pages_MenuOffice:OfficePageApplicationButton x:Name="ImportButton"
                                                                            Visibility="Collapsed"
                                                                            MouseEnter="ApplicationButton_MouseEnter"
                                                                            MouseLeave="ApplicationButton_MouseLeave"
                                                                            Margin="10.6,0"
                                                                            Application="RioImport" />
                <Rio_Framework_Pages_MenuOffice:OfficePageApplicationButton x:Name="SearchButton"
                                                                            Visibility="Collapsed"
                                                                            MouseEnter="ApplicationButton_MouseEnter"
                                                                            MouseLeave="ApplicationButton_MouseLeave"
                                                                            Margin="10.6,0"
                                                                            Application="RioSearch" />
                <Rio_Framework_Pages_MenuOffice:OfficePageApplicationButton x:Name="FlowButton"
                                                                            Visibility="Collapsed"
                                                                            MouseEnter="ApplicationButton_MouseEnter"
                                                                            MouseLeave="ApplicationButton_MouseLeave"
                                                                            Margin="10.6,0"
                                                                            Application="RioFlow" />
                <Rio_Framework_Pages_MenuOffice:OfficePageApplicationButton x:Name="ManagerButton"
                                                                            Visibility="Collapsed"
                                                                            MouseEnter="ApplicationButton_MouseEnter"
                                                                            MouseLeave="ApplicationButton_MouseLeave"
                                                                            Margin="10.6,0"
                                                                            Application="RioManager" />
            </StackPanel>
        </ScrollViewer>

        <telerik:RadTransitionControl x:Name="historicPanel"
                                      Visibility="Visible"
                                      Grid.Row="3"
                                      Margin="20,0,20,20"
                                      Duration="0:0:0.5">
            <telerik:RadTransitionControl.Transition>
                <telerik:SlideAndZoomTransition />
            </telerik:RadTransitionControl.Transition>
        </telerik:RadTransitionControl>

        <telerik:RadBusyIndicator Name="busyIndicator"
                                  Grid.RowSpan="4"
                                  IsBusy="true" />
    </Grid>
</UserControl>